<?php
$difference = array_merge(array_diff($a, $b), array_diff($b, $a));
